load("@io_bazel_rules_go//go:def.bzl", "go_test")

# srcs are compiled into the test package with the generated testmain.
filegroup(
    name = "srcs",
    srcs = [
        "test2json.go",
        "wrap.go",
        "xml.go",
    ],
    visibility = ["//visibility:public"],
)

filegroup(
    name = "all_files",
    testonly = True,
    srcs = glob(
        ["**"],
        exclude = ["testdata/*"],
    ),
    visibility = ["//visibility:public"],
)

go_test(
    name = "go_default_test",
    srcs = [":srcs"] + glob(["*_test.go"]),
    data = glob(["testdata/*"]),
)
